package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserExtractService;
import com.gidgabs.modules.dao.TbUserExtractDao;
import com.gidgabs.modules.entity.TbUserExtractEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbUserExtractServiceImpl implements TbUserExtractService {
	@Autowired
	private TbUserExtractDao userExtractDao;
	
	@Override
	public TbUserExtractEntity queryObject(Integer id){
		return userExtractDao.queryObject(id);
	}
	
	@Override
	public List<TbUserExtractEntity> queryList(Map<String, Object> map){
		return userExtractDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userExtractDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserExtractEntity userExtract){
		userExtractDao.save(userExtract);
	}
	
	@Override
	public void update(TbUserExtractEntity userExtract){
		userExtractDao.update(userExtract);
	}
	
	@Override
	public void delete(Integer id){
		userExtractDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userExtractDao.deleteBatch(ids);
	}
	
}
